package com.lingchen.service.impl;

import com.lingchen.dao.CollectDao;
import com.lingchen.entity.Choice;
import com.lingchen.entity.Collect;
import com.lingchen.service.CollectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Author    lingchen
 * Email     838878458@qq.com
 * Time      2018/2/28
 * Function  收藏
 */
@Service
public class CollectServiceImpl implements CollectService {
    @Autowired
    private CollectDao collectDao;


    public int insertCollect(Collect... collects) {
        return collectDao.insertCollect(collects);
    }

    public List<Collect> selectCollect(long userName,String courseId) {
        return collectDao.selectCollect(userName,courseId);
    }
}
